<?php

$test_file="pathx1-tests.xml";
$tests=simplexml_load_file($test_file);

$result=Array();

foreach($tests->test as $test)
    $result[]=(string)$test['value'];

echo json_encode($result);
